You are here: Ektron Namespace > Web Services API > Ektron.Services Namespace > Classes > Blog Class > Blog Methods > AddPost
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Blog.AddPost Method

Adds a post to a given blog. Accepts a ContentData class as the post content. Return new post ID. 

This method can be accessed through the blog.asmx file located in:

~/Workarea/webservices/WebServiceAPI/Content/Blog.asmx
C#
[SoapHeader("AuthHeader")]
[SoapHeader("RequestInfoHeader")]
[WebMethod(MessageName = "AddPost", Description = "")]
public long AddPost(long blogID, ContentData PostContent, string[] Categories, bool Pingback, string Tags, string TrackbackURL);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddPost", Description = "")>
Public Function AddPost(blogID As long, PostContent As ContentData, Categories As string[], Pingback As bool, Tags As string, TrackbackURL As string) As long
Parameters 
Description 
blogID 
Numeric ID of the blog to add the post to. 
PostContent 
ContentData class representing the HTML, title, etc. 
Categories 
String Array representing the categories this post applies to. 
Pingback 
Pingback URL(s) in this post?  
Tags 
String list of tags that that applies to this post. 
TrackbackURL 
Trackback URL(s) to notify. 

Numeric ID of the post created.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!